
			
			<div class="container">
				<div class="product-form">
				<div class="page-header" style="position:relative;">
					<h3>Add Product </h3>
				</div>
					<?php echo form_open('product/add','class ="form-horizontal" ', 'id = "product-form"'); ?>
						<div class="control-group">
							<label class="control-label" for="product_name">Product Name<span style="color: red;">*</span></label>
							<div class="controls">
								<input type="text" name="product_name" id="product_name"/>
								<label class="error"><?php echo form_error('product_name'); ?></label>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="description">Description</label>
							<div class="controls">
								<textarea type="text" name="description" id="description" class="ckeditor"></textarea>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="price">Price</label>
							<div class="controls">
								<input type="text" name="price" id="price" />
                                <label class="error"><?php echo form_error('price'); ?></label>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="status">Status</label>
							<div class="controls">
								<select name="status" id="status">
									<option value="1" selected="selected">Enabled</option>
									<option value="0">Disabled</option>
								</select>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="tags">Tags</label>
							<div class="controls">
								<input type="text" name="tags" id="tags" />
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="category">Category</label>
							<div class="controls">
								<!--<input type="text" name="category" id="category" />-->
                                <select name="category">
                                    <option>- Category - </option>
                                        <?php foreach($cat as $r):?> 
                                            <option value =<?php echo $r->category_name ?>> 
                                            <?php echo $r->category_name ?> </option>
                                        <?php endforeach ?>
								</select> 
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="option">Option</label>
							<div class="controls">
								<select name="option" id="option">
									<option value="1" selected="selected">Yes</option>
									<option value="0">No</option>
								</select>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="quantity">Quantity</label>
							<div class="controls">
								<input type="text" name="quantity" id="quantity" />
                                <label class="error"><?php echo form_error('quantity'); ?></label>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="Weight">Weight</label>
							<div class="controls">
								<input type="text" name="weight" id="weight" />
                                <label class="error"><?php echo form_error('weight'); ?></label>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="height">Height</label>
							<div class="controls">
								<input type="text" name="height" id="height" />
                                <label class="error"><?php echo form_error('height'); ?></label>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="length">Length</label>
							<div class="controls">
								<input type="text" name="length" id="length" />
                                <label class="error"><?php echo form_error('length'); ?></label>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="width">Width</label>
							<div class="controls">
								<input type="text" name="width" id="width" />
                                <label class="error"><?php echo form_error('width'); ?></label>	
							</div>
						</div>
                        <div class="form-actions">
							<input class="btn btn-primary" id="submit" type="submit" value="Save Product" />
							<input class="btn" id="cancel" type="button" name="cancel" value="Cancel" onclick="self.history.back()" /> 
                        </div>
					<?php echo form_close(); ?>
				</div>
			</div>

		